package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat; // 添加JsonFormat导入
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机组信息表对象 test_sys_paper
 *
 * @author ruoyi
 * @date 2025-09-23
 */
public class TestSysPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

                /** 公告ID */
                @Excel(name = "公告ID")

 // 如果是主键，添加@JsonFormat注解
            @JsonFormat(shape = JsonFormat.Shape.STRING)
        private Long paperId;

                /** 公告标题 */
                @Excel(name = "公告标题")

        private String paperTitle;

                /** 公告类型（1通知 2公告） */
                @Excel(name = "公告类型", readConverterExp = "1=通知,2=公告")

        private String paperType;

                /** 公告内容 */
                @Excel(name = "公告内容")

        private String paperContent;

                /** 公告状态（0正常 1关闭） */
                @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")

        private String status;

    public void setPaperId(Long paperId)
    {
        this.paperId = paperId;
    }

    public Long getPaperId()
    {
        return paperId;
    }

    public void setPaperTitle(String paperTitle)
    {
        this.paperTitle = paperTitle;
    }

    public String getPaperTitle()
    {
        return paperTitle;
    }

    public void setPaperType(String paperType)
    {
        this.paperType = paperType;
    }

    public String getPaperType()
    {
        return paperType;
    }

    public void setPaperContent(String paperContent)
    {
        this.paperContent = paperContent;
    }

    public String getPaperContent()
    {
        return paperContent;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paperId", getPaperId())
            .append("paperTitle", getPaperTitle())
            .append("paperType", getPaperType())
            .append("paperContent", getPaperContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
